import request from '@/utils/request'

/**
 * 设置系统名称/主题色
 */
export function setDataByType(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sys/sysConfig/updateByName',
    method: 'post',
    data
  })
}

/**
 * 获取系统名称/主题色
 */
export function getDataByType(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sys/sysConfig/getByName',
    method: 'post',
    data
  })
}

/**
 * 获取企业信息
 */
export function getEnterpriseInfo(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/getEnterpriseInfo',
    method: 'post',
    data
  })
}
